package net.xdclass.service;

import net.xdclass.enums.SendCodeEnum;
import net.xdclass.util.JsonData;

/**
 * @Author NJUPT wly
 * @Date 2021/9/13 10:30 下午
 * @Version 1.0
 */
public interface NotifyService {
    /**
     * 发送验证码
     * @param sendCodeEnum
     * @param to
     * @return
     */
    JsonData sendCode(SendCodeEnum sendCodeEnum,String to);

    boolean checkCode(SendCodeEnum sendCodeEnum,String to ,String code);
}
